package com.simpleaccount.User;

import android.widget.Toast;

import com.simpleaccount.Toast.TextApplication;

import cn.bmob.v3.BmobUser;

/**
 * Created by zhou on 2017/7/17.
 * 退出登录的方法
 */

public class LogOut {
    public void logOut(){
        AppUser.logOut();
        AppUser appUser= BmobUser.getCurrentUser(AppUser.class);
        if(appUser==null){
            //put code
            Toast.makeText(TextApplication.getAppContext(),"退出登录成功",Toast.LENGTH_SHORT).show();
        }
        else{
            ////put code
            Toast.makeText(TextApplication.getAppContext(),"退出登录失败",Toast.LENGTH_SHORT).show();
        }
    }
}
